package com.dissertation.respository;

import com.dissertation.model.Collections;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CollectionRepository extends MongoRepository<Collections,String> {
    Collections findByColumnAndAdminID(String column,String adminID);

    List<Collections> findByAdminID(String adminID);

    void  deleteByAdminIDAndColumn(String adminID,String column);

}
